function toBoolean(anything: any) {
    return anything as boolean;
    // 类型断言不是类型转换，不会真的影响到变量类型
}

toBoolean(2)

declare var $ :(selector: string) => any;
$('abc')

// yarn add @types/jquery
